<?php

namespace app\admin\controller;

use app\common\controller\Base;
use think\Db;

class Common extends Base{

  public function imageUrl($str){
    $str_lower = strtolower($str);
    if(empty($str)){
      return '/image/null.png';
    } else {
      if(strstr($str, 'http')){
        return $str;
      } else {
        return C('system_url').$str;
      }
    }
  }
}